﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="HelfenHelfen.Web.Forms.Site.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
   <div class="info">
      <br />
      <div class="center prefix-3 span-11 suffix-3 last">
         <div class="box">
            <div id="loginheader">
               <img src="/img/login_text.png" alt="Login" />
            </div>
            <p>Bitte geben Sie Ihren Benutzernamen und Ihr Passwort ein.</p>
            <asp:Login ID="ctlLogin" runat="server" RenderOuterTable="false" DestinationPageUrl="~/Default.aspx" OnLoginError="OnLoginError">
               <LayoutTemplate>
                  <div class="row">
                     <asp:Label ID="lblUserName" runat="server" AssociatedControlID="UserName">Benutzername</asp:Label>
                     <asp:TextBox ID="UserName" runat="server" />
                     <asp:RequiredFieldValidator ID="valUserName" runat="server" ControlToValidate="UserName"
                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="LoginUser">*</asp:RequiredFieldValidator>
                  </div>
                  <div class="row">
                     <asp:Label ID="lblPassword" runat="server" AssociatedControlID="Password">Passwort</asp:Label>
                     <asp:TextBox ID="Password" runat="server" TextMode="Password" />
                     <asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="Password"
                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="LoginUser">*</asp:RequiredFieldValidator>
                  </div>
                  <div class="row">
                     <asp:Label ID="lblRememberMe" runat="server" AssociatedControlID="RememberMe">Passwort merken</asp:Label>
                     <input id="RememberMe" runat="server" type="checkbox" class="checkbox" />
                  </div>
                  <br class="space" />
                  <div id="divError" runat="server" class="error" >
                     <asp:Literal ID="FailureText" runat="server" EnableViewState="False" />
                     <asp:ValidationSummary runat="server" ID="Hallo" ValidationGroup="LoginUser" />
                     <asp:Label ID="LoginErrorDetails" runat="server" Text="Das Einloggen hat so seine Probleme gemacht!" />
                  </div>
                  <div class="rowsmall">
                     <asp:Button runat="server" ID="LoginButton"  CssClass="nofloat" CommandName="Login" Text="Anmelden" ValidationGroup="LoginUser" />
                  </div>
               </LayoutTemplate>
            </asp:Login>
            <p>
               Oder <strong><a href="Register.aspx">registrieren</a></strong> Sie sich, wenn Sie noch keinen
               Account haben.
            </p>
         </div> <!-- .box -->
      </div> <!-- .center -->
   </div> <!-- .info -->
</asp:Content>
